package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 我的班级
 * @author xubo
 */
public class MineClassData implements Parcelable {

    /**
     * ssxn : 3
     * xxid : 166301
     * bzrgh : 340233
     * bh : 15
     * ssnj : 20
     * bjmc : rrrrrrrrt
     * jbny : 2018-07-13
     * baseNo : 100015
     * createTime :
     * teaCount : 1
     * id : 16
     * lsbj : 1
     * stuCount : 0
     * lastUpdateTime :
     */

    private String ssxn;
    private String xxid;
    private String bzrgh;
    private String bh;
    private String ssnj;
    private String bjmc;
    private String jbny;
    private String baseNo;
    private String createTime;
    private String teaCount;
    private String id;
    private String lsbj;
    private String stuCount;
    private String lastUpdateTime;
    private boolean isBzr;

    public boolean isSelect() {
        return select;
    }

    public void setSelect(boolean select) {
        this.select = select;
    }

    private boolean select;

    public boolean isBzr() {
        return isBzr;
    }

    public void setBzr(boolean bzr) {
        isBzr = bzr;
    }

    public String getSsxn() {
        return ssxn;
    }

    public void setSsxn(String ssxn) {
        this.ssxn = ssxn;
    }

    public String getXxid() {
        return xxid;
    }

    public void setXxid(String xxid) {
        this.xxid = xxid;
    }

    public String getBzrgh() {
        return bzrgh;
    }

    public void setBzrgh(String bzrgh) {
        this.bzrgh = bzrgh;
    }

    public String getBh() {
        return bh;
    }

    public void setBh(String bh) {
        this.bh = bh;
    }

    public String getSsnj() {
        return ssnj;
    }

    public void setSsnj(String ssnj) {
        this.ssnj = ssnj;
    }

    public String getBjmc() {
        return bjmc;
    }

    public void setBjmc(String bjmc) {
        this.bjmc = bjmc;
    }

    public String getJbny() {
        return jbny;
    }

    public void setJbny(String jbny) {
        this.jbny = jbny;
    }

    public String getBaseNo() {
        return baseNo;
    }

    public void setBaseNo(String baseNo) {
        this.baseNo = baseNo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getTeaCount() {
        return teaCount;
    }

    public void setTeaCount(String teaCount) {
        this.teaCount = teaCount;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLsbj() {
        return lsbj;
    }

    public void setLsbj(String lsbj) {
        this.lsbj = lsbj;
    }

    public String getStuCount() {
        return stuCount;
    }

    public void setStuCount(String stuCount) {
        this.stuCount = stuCount;
    }

    public String getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(String lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }


    public MineClassData() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.ssxn);
        dest.writeString(this.xxid);
        dest.writeString(this.bzrgh);
        dest.writeString(this.bh);
        dest.writeString(this.ssnj);
        dest.writeString(this.bjmc);
        dest.writeString(this.jbny);
        dest.writeString(this.baseNo);
        dest.writeString(this.createTime);
        dest.writeString(this.teaCount);
        dest.writeString(this.id);
        dest.writeString(this.lsbj);
        dest.writeString(this.stuCount);
        dest.writeString(this.lastUpdateTime);
        dest.writeByte(this.isBzr ? (byte) 1 : (byte) 0);
        dest.writeByte(this.select ? (byte) 1 : (byte) 0);
    }

    protected MineClassData(Parcel in) {
        this.ssxn = in.readString();
        this.xxid = in.readString();
        this.bzrgh = in.readString();
        this.bh = in.readString();
        this.ssnj = in.readString();
        this.bjmc = in.readString();
        this.jbny = in.readString();
        this.baseNo = in.readString();
        this.createTime = in.readString();
        this.teaCount = in.readString();
        this.id = in.readString();
        this.lsbj = in.readString();
        this.stuCount = in.readString();
        this.lastUpdateTime = in.readString();
        this.isBzr = in.readByte() != 0;
        this.select = in.readByte() != 0;
    }

    public static final Creator<MineClassData> CREATOR = new Creator<MineClassData>() {
        @Override
        public MineClassData createFromParcel(Parcel source) {
            return new MineClassData(source);
        }

        @Override
        public MineClassData[] newArray(int size) {
            return new MineClassData[size];
        }
    };
}
